from problem_info import ProblemInfo
from oj_crawler import POJCrawler

def main():
	poj_crawler = POJCrawler()
	while ( True ):
		id = raw_input('Id (q means quit): ')
		if id == 'q':
			break
		problem_info = poj_crawler.crawl_problem(id)
		if problem_info != None:
			problem_info.show()

if __name__ == '__main__':
	main()
